﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>获取模式窗口的值1</title>
    <script type="text/javascript">
        function  ReturnWin(){
            var returnData=new Object();     //创建变量
            returnData.value=document.getElementById("Text1").value;        //设置变量的值
            window.returnValue=returnData;   //窗体返回数据
            window.close();                  //关闭窗口
        }
    </script>
</head>
<body>
    <input id="Text1" type="text" />
    <input id="Button1" type="button" value="返回" onclick="ReturnWin()" />
</body>
</html>